package com.richard.room.operator.api.statement.element;

import com.richard.room.operator.api.Property;
import com.richard.room.operator.api.type.FuncType;

/**
 * @author: Richard
 * @createDate: 2023/8/17 14:52
 * @version: 1.0
 * @description: 聚合函数信息对象
 */
public class Function {

    /**聚合函数类型*/
    public final FuncType type;

    /**聚合字段*/
    public final Property property;

    /**函数参数*/
    public final Object[] value;

    public Function(FuncType type, Property property) {
        this.type = type;
        this.property = property;
        this.value = null;
    }

    public Function(FuncType type, Property property,Object[] value) {
        this.type = type;
        this.property = property;
        this.value = value;
    }
}
